package com.google.code.ptrends.Application.DAL.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "APP.MANUFACTURERS")
public class ManufacturerEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	private int id;
	private String name;
	private String website;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "NAME", nullable = false, unique = true, length = 50)
	public String getName() {
		return name;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	@Column(name = "WEBSITE", nullable = false, unique = true, length = 256)
	public String getWebsite() {
		return website;
	}
	
}
